package com.kjzy.dao;

import com.kjzy.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface OrderDao {

    @Select("select id,user_id userId,name,price,num from tb_order where id=#{id}")
    public Order getOrderById(Integer id);

    //    查询所有订单信息
    @Select("select id,user_id userId,name,price,num from tb_order ")
    List<Order> getAllOrders();
}
